This page last changed on Apr 28, 2011 by smaddox.


You are embarking on stage 6 of the Atlassian Dragon Quest. Be prepared to ride on the dragon's back, for he is swift and strong and will take you where you need to go.

In this stage you will configure JIRA and FishEye, so that you will be able to see code commits in JIRA and see JIRA issues in FishEye.

Time estimate: This stage will take approximately 15 minutes.

On this page:

Step 1. Add a JIRA-FishEye Application Link

In this step you will link your JIRA and FishEye servers by creating an application link.

  1. Go to your FishEye URL in your web browser, e.g. http://localhost:8060/.
  2. Click the downward-pointing arrow next to your username (i.e. 'Charlie of Atlassian') then click 'Administration' in the dropdown menu to go to the FishEye Admin screen.
  3. Click 'Application Links' in the left-hand panel.
  4. The 'Configure Application Links' screen will appear. Click 'Add Application Link'.
  5. The first screen of the 'Add Application Link' wizard will appear. Copy the base URL for your JIRA site (e.g. http://coopers:8080 or http://www.foobar.com:8080) and paste it into the 'Server URL' field.
  6. Click 'Next'.
  7. The 'Link to JIRA' screen will appear. Enter the following information:
    • Create a link back to this server – This option is selected by default. Let it remain selected.
    • Username: charlie. This is the username of the administrator on your JIRA site.
    • Password – Enter Charlie's password in JIRA.
    • Reciprocal Link URL – Leave this field at its default value, pointing to your FishEye site.
  8. Click 'Next'.
  9. The 'Set Users and Trust' screen will appear. Enter the following information:
    • The servers have the same set of users – This option is selected by default. Let it remain selected.
    • These servers fully trust each other – This option is selected by default. Let it remain selected.
  10. Click 'Create'. The application link will be created and displayed on the 'Configure Application Links' page.
  11. Click 'Configure' next to the 'Your Company JIRA' application link.
  12. Change the 'Application Name' to Dragons JIRA and click 'Update'.
  13. Click 'JIRA Settings' next to the 'Dragons JIRA' application link.
  14. The 'Update JIRA Server' screen will appear. Select the 'Include in Activity Streams' checkbox.
  15. Click 'Save'.
  16. Click the 'Server' link in the left-hand menu under 'Global Settings'.
  17. The 'Server Settings' screen will appear. Click 'Edit Settings'.
  18. The 'Edit Web Settings' screen will appear. Select the 'On' radio button next to 'Allow remote API calls'.
  19. Click 'Update'.

Screenshot 1 (click to enlarge): Adding JIRA as a trusted application in FishEye

Step 2. Link a FishEye Repository to a JIRA Project and Subscribe JIRA to FishEye Gadgets

In this step you will link your FishEye repository to your JIRA project via a project link. This will enable the hyperlink on JIRA issue keys in FishEye and the summary popup window that appears when you move your cursor over a JIRA issue key. You will also make your FishEye gadgets available for use in JIRA.

  1. Go to your FishEye URL in your web browser, e.g. http://localhost:8060/.
  2. Click the downward-pointing arrow next to your username (i.e. 'Charlie of Atlassian') then click 'Administration' in the dropdown menu to go to the FishEye Admin screen.
  3. Click the 'Repositories' link in the left-hand menu under 'Repository Settings'.
  4. The 'Repositories' screen will appear. Click the cog icon next to your 'Dragons' repository and select 'Application Links' from the dropdown menu.
  5. Click 'Add Link' then select 'Dragons JIRA (JIRA)' from the dropdown menu.
  6. Click 'Create'. Your FishEye repository is now linked to your JIRA project.
  7. Now you will make your FishEye gadgets available in JIRA, so that JIRA users will be able to add any FishEye gadget to their dashboards. Go to your JIRA browser window and click 'Dashboards' in JIRA's top navigation bar.
  8. Click 'Add Gadget'.
  9. The 'Gadget Directory' popup window will appear. Click 'Gadget Subscriptions'.
  10. The 'Gadget Subscriptions' popup window will appear. Click 'Add Subscription'.
  11. The 'Add Subscriptions' popup window will appear. Copy the base URL for your FishEye site (e.g. http://coopers:8060 or http://www.foobar.com:8060) and paste it into the text box on the screen.
  12. Click 'Add Subscription'.
  13. Click 'Finished'.
    The FishEye gadgets are now available in your JIRA gadget directory. You have not yet added them to your JIRA dashboard. We will do that in a later step.

Step 3. Configure the FishEye Plugin in JIRA

The FishEye plugin for JIRA is bundled as part of the JIRA package, so there is no need to install it. Now you will configure the plugin for your installation and configure JIRA to trust FishEye.

  1. Go to your JIRA URL in your browser, e.g. http://www.foobar.com:8080.
  2. Click 'Administration' in the top navigation bar.
  3. The JIRA Administration console will open. Click 'FishEye Configuration' in the left-hand panel (in the 'Global Settings' section).
  4. The JIRA FishEye configuration screen will appear. Click 'Edit Primary Configuration' at the bottom of the screen.
  5. Enter the following information:
    • Enable Crucible Integration: Yes
    • Review Search Method: Both
  6. Leave all the other fields at their default values and click 'Update'.
  7. Click 'Application Links Configuration' at the bottom of the screen.
  8. Click 'Trusted Applications' in the 'Outgoing Authentication' column for your FishEye/Crucible link. If prompted, log in to FishEye.
  9. Click 'Modify' and enter the following information:
    • 'IP Patterns': Enter the IP addresses of your FishEye/Crucible site, separated by commas. For example: 127.0.0.1, 172.20.5.95.
      You can find the IP addresses of your FishEye/Crucible site by viewing the 'Remote Addresses' tab for the FishEye application in Crowd.
  10. Click 'Apply'.
  11. Click 'Incoming Authentication' in the left-hand menu.
  12. Click 'Modify' and enter the following information:
    • 'IP Patterns': Enter the IP addresses of your JIRA site, one per line. For example: 127.0.0.1, 172.20.5.95.
    • 'URL Patterns': Enter the following paths, one per line:
      • /plugins/servlet/streams
      • /sr/jira.issueviews:searchrequest
      • /secure/RunPortlet
      • /rest
      • /rpc/soap
  13. Click 'Apply' and then 'Close'.

Try It Out!

  • There is now a 'Source' tab on your JIRA issues. Open your 'DRA-1' issue and click the new 'Source' tab. The tab shows the changesets related to the issue, i.e. changesets where the JIRA issue key was included in the commit message.

    Screenshot 2 (click to enlarge): Source tab on a JIRA issue
  • There is now also a 'Source' tab on your JIRA project. Open your 'Dragons' project to see the new tab. (Click the dropdown arrow next to 'Projects' in the top navigation bar, then click the 'Dragons (DRA)' project.) The 'Source' tab shows the most recent changesets related to any issue in the project, provided the changes were committed in the last 30 days.
    We committed our changes to the 'Dragons' repository more than 30 days ago, so you will not see any commits on the JIRA project tab. The screenshot below shows you what they would look like.

    Screenshot 3 (click to enlarge): Source tab on a JIRA project
  • You can click through from JIRA to view a changeset or other repository views in FishEye. To try it, go to the 'Source' tab on your 'DRA-1' issue and click the changeset number ('1') or the repository name ('Dragons').
  • In FishEye, you can see a popup summary of issue information for an issue key. Try it by moving your cursor over 'DRA-1' in your FishEye view. You can also click through from FishEye to JIRA by clicking the issue key.

Full details are in the JIRA documentation.

Problems? Please raise a support ticket for the product you're stuck on, or try the Dragon Slayers' Forum.
Victory? Please continue.

Step 4. Add a FishEye Gadget to JIRA

Now you will add the 'FishEye Charts' gadget to your Dragon Development Dashboard.

  1. Click 'Dashboards' at top left of your JIRA screen.
  2. Your 'Dragon Development Dashboard' will appear. Click 'Add Gadget'.
  3. The 'Gadget Directory' will appear, showing a list of the available gadgets for your JIRA dashboard. Enter 'FishEye' into the search box at top right of the Gadget directory screen.
  4. The list of gadgets will change, to show only the gadgets that match your search term. Find the 'FishEye Charts' gadget and click 'Add it Now'. The gadget will be highlighted for a short time and the button's wording will change to 'Adding', while JIRA adds the gadget to the dashboard.
  5. Click 'Finished' to go back to your dashboard.
  6. Configure the 'FishEye Charts' gadget:
    • Enter 'Dragons' in the 'Repository' field.
    • Click the dropdown arrow next to 'Refresh Interval' and select 'Every 15 Minutes'.
    • Click 'Save'.
  7. Choose a different colour for your 'FishEye Charts' gadget:
    • Move your cursor pointer over the gadget and click the downward-pointing arrow at top right of the gadget frame.
    • Select the orange square in the row of colours.

Problems? Please raise a support ticket for the product you're stuck on, or try the Dragon Slayers' Forum.
Victory? Please continue.

Victory!

Your JIRA dashboard now has 5 gadgets:

  • The 'FishEye Charts' gadget
  • The Confluence 'Activity Stream' gadget
  • The 'Assigned to Me' gadget
  • The 'Projects' gadget
  • The GreenHopper 'Agile' gadget

Screenshot 3 (click to enlarge): JIRA dashboard with 5 gadgets



Problems? Please raise a support ticket for the product you're stuck on, or try the Dragon Slayers' Forum.
Victory? Please continue.

Grab a Bigger Sword and Move to the Next Stage

Document generated by Confluence on May 22, 2011 21:55